const express = require('express');
const app = express();
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(express.static('./public'));
const router = require('./router/index.js');
app.use(router);
app.listen(8000, () => {
  console.log('server is running http://127.0.0.1:8000');
});
